home *** CD-ROM | disk | FTP | other *** search
/ Aminet 6 / Aminet 6 - June 1995.iso / Aminet / util / libs / ControlPad.lha / cpTest.doc < prev    next >
Encoding:
Text File  |  1995-03-12  |  1.9 KB  |  42 lines

  1. cpTest by Joseph Carlson
  2. March 11, 1995
  3.  
  4.  
  5. 'cpTest' tests CP-1 ControlPad Adapters, Sega Genesis(TM) ControlPads, as well
  6. as standard single button joysticks.  It requires WB 2.0+ and the
  7. 'ControlPad.Library' by Randall Richards and Joseph Carlson.
  8.  
  9. To run cpTest, either double-click its icon or type cpTest from a shell.  When
  10. it runs, you will see a brief logo screen which is created by just a single
  11. library call  - cpShowLogo(120);  The graphics for this intro screen are
  12. completely embedded in the library itself.
  13.  
  14. Following the intro, the main screen comes up.  This screen is divided into
  15. two halves, MOUSEPORT & JOYPORT.  At the top of each half is a graphic
  16. representation of the status of the joystick or controlpad plugged into that
  17. port.  This display indicates brightly what direction and buttons are being
  18. pressed on an allocated port.  If you dont have a CP-1 Adapter yet, just try
  19. it with a joystick.  A joystick button reads the same as the B button on a
  20. controlpad.
  21.  
  22. The sensed controller type is indicated.  This program does not
  23. recognize a mouse, so if a mouse is plugged into the port (and the port is
  24. allocated) the program will report it as a JOYSTICK or ERROR.  If a joystick
  25. or nothing is plugged in, JOYSTICK is indicated.  If a CP-1 adapter and a
  26. controlpad is plugged in, CONTROLPAD is indicated.
  27.  
  28. Pressing 1 or 2 will allocate or deallocate that port.  While a port is not
  29. allocated, the library function cpGet() returns 0 indicating nothing is being
  30. pressed even if something is pressed.  It only responds to allocated ports.
  31. When first run, only the JOYPORT is allocated.
  32.  
  33. Pressing T does a thorough adapter timeout test on any allocated ports.  The
  34. range of the times from 50 tests is indicated under TIMER VALUE: in milli-
  35. seconds and PASS/FAIL/NOT FOUND is indicated after ADAPTER TEST:
  36.  
  37. Press ESC to quit.
  38.  
  39. Someday I may add joystick graphics to the program.  Who knows???
  40.  
  41. - The end.
  42.